{ config, pkgs, ... }:
{
  services.xserver = {
    windowManager.awesome = {
  	  enable = true;
  	  luaModules = with pkgs.luaPackages; [
  	    luarocks     # is the package manager for Lua modules
  	    luadbi-mysql # Database abstraction layer
  	  ];
  	};
  };

  services = {
    power-profiles-daemon.enable = true;
    udisks2.enable = true;
  };

  environment.systemPackages = with pkgs; [
    i3lock-color
  ];

  # xdg-desktop-portal works by exposing a series of D-Bus intefraces
  # known as portals under a well-known name
  # The portal interfaces include APIs for file access, opening URIs,
  # printing and others.
  services.dbus.enable = true;
  xdg.portal = {
    enable = true;
    wlr.enable = true;
    # gtk portal need to make gtk apps happy
    extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
  };

  # For brightness
  programs.light.enable = true;
  
  services.dbus.packages = [ pkgs.blueman ];
  systemd.packages = [ pkgs.blueman ];
}
